package com.example.knowman.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.knowman.ReturnMessage.Message;
import com.example.knowman.ReturnMessage.MessageExKnowCategoryLevels;
import com.example.knowman.dao.knowCategoryLevels;
import com.example.knowman.dao.knowCategoryLevelsSingle;
import com.example.knowman.dao.knowCategoryWithStaffname;
import com.example.knowman.entity.knowCategory;

import java.util.List;
import java.util.Map;

public interface IKnowCategoryService extends IService<knowCategory>{



    List<knowCategory> getLittleClass(Integer parentId);

    Message deleteByKnowCateId(Integer KnowCateId);

    Message update(Integer KnowCateId, String knowCateName, String notes);

    Message Insert(String knowCateName, Integer parentId, String notes, String staffCode);

    knowCategory selectByknowCateId(Integer knowCateId);

    List<knowCategory> showAll();


    List<knowCategory> listByKnowCateName(String knowCateName);


    IPage<knowCategory> getEasyClass(Integer pageNum, Integer pageSize, String knowCateName);

    IPage<knowCategory> getFirstClass(Integer pageNum, Integer pageSize, String knowCateName);

    Map<Integer, String> getIdAndName();

    knowCategoryWithStaffname getSingleById(Integer knowCateId);


    List<knowCategoryLevels> getAllLevels();


    List<knowCategoryLevels> getSingleLevels(Integer knowCateId);
}
